import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);

const state={
    infoList:[],
    realTimeData: [],
    bodySize: true,
    config:window.localStorage.getItem('config') ? JSON.parse(window.localStorage.getItem('config')) : {}
}; 
const getters = {
    // getThemeColor(state) {
       
    //    return ''
    // }
};
const mutations = {
    updataRealTimeData(state,data) { 
        state.realTimeData = data;
    },
    updataInfoList(state,data) { 
        state.infoList = data;
    },
    updataBodySize(state,data) { 
        state.bodySize = data;
    },
};
const actions = {
    // setThemeColorAction(context,color,opacity){
    //  	// context.commit('setThemeColor',color,opacity);
    // }
};
const store = new Vuex.Store({
       state,
       getters,
       mutations,
       actions,
});
export default store;
